package mr.ali.video.web.mapper;

import mr.ali.video.web.model.OpenId;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

/**
* <p>
    *  Mapper 接口
    * </p>
*
* @author Mr-ali
* @since 2024-09-16
*/
    @Repository
    public interface OpenIdMapper extends BaseMapper<OpenId> {
    @Update("update open_id set status=#{status} where id=#{id}")
    Integer deleteStatus(@Param("id") Integer id,@Param("status") Integer status);

    @Update("update open_id set status=#{status},status_create=#{statusCreate} where id=#{id}")
        Integer updateStatus(@Param("id") Integer id,@Param("status") Integer status,@Param("statusCreate") Long statusCreate);
    }
